﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;

namespace Janus.NorthwindDemo2007
{
	public class RootFolder : ApplicationFolder
	{

		private const string cFolderName = "Root";
        private const string cFolderDescription = "Gốc";
		public RootFolder()
		{
            mFolderDescription = cFolderDescription;
			mFolderName = cFolderName;
			this.mSupportedFeatures = FolderFeatures.None;
			this.mLoadMode = FolderLoadMode.Never;

			//Add child folders
			this.AddChildFolder(new ContactsFolder());
            //this.AddChildFolder(new CalendarFolder());
			this.AddChildFolder(new ProductsAndOrdersFolder());

		}
		public ContactsFolder ContactsFolder
		{
			get
			{
				return this.Folders[typeof(ContactsFolder)] as ContactsFolder;
			}
		}
		public CalendarFolder CalendarFolder
		{
			get
			{
				return this.Folders[typeof(CalendarFolder)] as CalendarFolder;
			}
		}
		public ProductsAndOrdersFolder ProductsAndOrdersFolder
		{
			get
			{
				return this.Folders[typeof(ProductsAndOrdersFolder)] as ProductsAndOrdersFolder;
			}
		}
	}

} //end of root namespace